package online.yysh.charging.bean;

import java.io.Serializable;

/**
 * 用户信息
 */
public class User implements Serializable {
    //用户ID
    private String UserID;
    //设备ID
    private String deviceId;
    //电话号码
    private String phone_number;
    /**
     * 用户状态：
     *  1：用户请求充电
     *  2：提示用户插上充电枪
     *  3：用户充电中
     *  4：充电自动弯车跟用户订单未结束
     *  5：用户点击结束充电订单
     *  6：正在扣钱
     *  7：设备正在预充电
     *  8：预约充电
     *  9：充电开启失败
     *  17：充电枪连接检测失败
     */
    private int status;
    //枪号
    private int port;
    //充电模式
    private int mode;
    //充电模式对应的值
    private int modeValue;
    //开始时间
    private String startTime;
    //用户的钱
    private float Money;
    //用户用的钱
    private float useMoney;
    //充电电量
    private String useKWh;
    //充电电压
    private String Voltage;
    //充电电流
    private String Cur;
    //充电时长
    private String TimeCharged;
    //充电进度
    private int SOC;
    //预约充电时间
    private String bookingTime;
    //预约限定时间（分钟）
    private String bookingLimitTime;

    public User(String userID, String deviceId, String phone_number, int status, int port, int mode, int modeValue, String startTime, float money, float userMoney, String useKWh, String voltage, String cur, String timeCharged, int SOC, String bookingTime, String bookingLimitTime) {
        UserID = userID;
        this.deviceId = deviceId;
        this.phone_number = phone_number;
        this.status = status;
        this.port = port;
        this.mode = mode;
        this.modeValue = modeValue;
        this.startTime = startTime;
        Money = money;
        this.useMoney = userMoney;
        this.useKWh = useKWh;
        Voltage = voltage;
        Cur = cur;
        TimeCharged = timeCharged;
        this.SOC = SOC;
        this.bookingTime = bookingTime;
        this.bookingLimitTime = bookingLimitTime;
    }

    public String getUserID() {
        return UserID;
    }

    public User setUserID(String userID) {
        UserID = userID;
        return this;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public User setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public String getPhone_number() {
        return phone_number;
    }

    public User setPhone_number(String phone_number) {
        this.phone_number = phone_number;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public User setStatus(int status) {
        this.status = status;
        return this;
    }

    public int getPort() {
        return port;
    }

    public User setPort(int port) {
        this.port = port;
        return this;
    }

    public int getMode() {
        return mode;
    }

    public User setMode(int mode) {
        this.mode = mode;
        return this;
    }

    public int getModeValue() {
        return modeValue;
    }

    public User setModeValue(int modeValue) {
        this.modeValue = modeValue;
        return this;
    }

    public String getStartTime() {
        return startTime;
    }

    public User setStartTime(String startTime) {
        this.startTime = startTime;
        return this;
    }

    public float getMoney() {
        return Money;
    }

    public User setMoney(float money) {
        Money = money;
        return this;
    }

    public float getUserMoney() {
        return useMoney;
    }

    public User setUserMoney(float userMoney) {
        this.useMoney = userMoney;
        return this;
    }

    public String getUseKWh() {
        return useKWh;
    }

    public User setUseKWh(String useKWh) {
        this.useKWh = useKWh;
        return this;
    }

    public String getVoltage() {
        return Voltage;
    }

    public User setVoltage(String voltage) {
        Voltage = voltage;
        return this;
    }

    public String getCur() {
        return Cur;
    }

    public User setCur(String cur) {
        Cur = cur;
        return this;
    }

    public String getTimeCharged() {
        return TimeCharged;
    }

    public User setTimeCharged(String timeCharged) {
        TimeCharged = timeCharged;
        return this;
    }

    public int getSOC() {
        return SOC;
    }

    public User setSOC(int SOC) {
        this.SOC = SOC;
        return this;
    }

    public String getBookingTime() {
        return bookingTime;
    }

    public User setBookingTime(String bookingTime) {
        this.bookingTime = bookingTime;
        return this;
    }

    public String getBookingLimitTime() {
        return bookingLimitTime;
    }

    public User setBookingLimitTime(String bookingLimitTime) {
        this.bookingLimitTime = bookingLimitTime;
        return this;
    }
}
